package com.oocl.pojo;

import java.util.Date;
import java.util.List;
/**
 * 顾客实体
 * @author XIEMI2
 *
 */
public class Customer {
	private Integer id;
	private String name;
	private double sal;
	private boolean sex;
	private Date birth;
	private List<Favorite> favorites;
	
	public Customer() {
	}

	/**
	 * 
	 * @param id
	 * @param name
	 * @param sal
	 * @param sex
	 * @param birth
	 * @param favorites
	 */
	public Customer(Integer id, String name, double sal, boolean sex, Date birth, List<Favorite> favorites) {
		super();
		this.id = id;
		this.name = name;
		this.sal = sal;
		this.sex = sex;
		this.birth = birth;
		this.favorites = favorites;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getSal() {
		return sal;
	}

	public void setSal(double sal) {
		this.sal = sal;
	}

	public boolean isSex() {
		return sex;
	}

	public void setSex(boolean sex) {
		this.sex = sex;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public List<Favorite> getFavorites() {
		return favorites;
	}

	public void setFavorites(List<Favorite> favorites) {
		this.favorites = favorites;
	}

	@Override
	public String toString() {
		return "Customer [id=" + id + ", name=" + name + ", sal=" + sal + ", sex=" + sex + ", birth=" + birth + ", favorites=" + favorites + "]";
	}
	
	
}
